# KS5037 Keyestudio ESP32 S3 Cam Sensor Shield ![Img](./media/1.png) ## 1. Introduction The Keyestudio ESP32 S3 Cam Sensor Shield is an expansion board developed based on the S3 cam. It extends the pins of the S3 cam development board through a 2.54mm pin interface and includes interfaces for IIC, serial port, and a 1.54-inch color screen. The expansion board can be powered by a DC interface to supply a DC voltage of 6-9V. Additionally, a toggle switch is reserved for convenient control of power on/off. In terms of structure, it is equipped with four M4 positioning holes and is compatible with the size of Lego parts. ## 2. Parameters - Operating Voltage: DC 6~9V - Operating Current: 60mA (average) - Maximum Output Current: 5V/2A - Operating Temperature: -25℃~+65℃ - Dimensions: 80mm * 120mm ## 3. Pin-out ![Img](./media/2.png) ## 4. Wiring **For the S3 cam development board usage tutorial, you can refer to:[MB0184](https://docs.keyestudio.com/projects/MB0184/en/latest/docs/MB0184%20ESP32-S3%20CAM%20Development%20Board.html)** | S3 cam shield | XHT11 | | :--: | :--: | | G | GND | | 3V3 | 3V3 | | 14 | S | ![Img](./media/3.png) ## 5. Arduino For downloading the Arduino IDE, please refer to [Arduino IDE](https://docs.keyestudio.com/projects/Arduino/en/latest/Arduino%20IDE%20Tutorial.html) (including the installation of the CH340 driver). **Download** * Click to download the [library files](./library/Bonezegei_DHT11.7z) ``` #include Bonezegei_DHT11 dht(14); void setup() { Serial.begin(115200); dht.begin(); } void loop() { if (dht.getData()) { // get All data from DHT11 float tempDeg = dht.getTemperature(); // return temperature in celsius float tempFar = dht.getTemperature(true); // return temperature in fahrenheit if true celsius of false int hum = dht.getHumidity(); // return humidity String str = "Temperature: "; str += tempDeg; str += "°C "; str += tempFar; str += "°F Humidity:"; str += hum; Serial.println(str.c_str()); //Serial.printf("Temperature: %0.1lf°C %0.1lf°F Humidity:%d \n", tempDeg, tempFar, hum); } delay(2000); //delay atleast 2 seconds for DHT11 to read tha data } ``` **Test Results** ![Img](./media/4.png) ## 6. The Don'ts 1. Do not directly connect high-power modules or motors to the IO expansion ports. 1. Do not connect voltages higher than DC 9V to the External Power Port.